﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace EjemploEEF5.Models
{
    public class Inscripcion
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }
        virtual public Alumno alumno { get; set; }
        virtual public Materia materia { get; set; }
        public double nota1 { get; set; }
        public double nota2 { get; set; }

        public double promedio()
        {
            double prom=0.0;
            prom = (nota1 + nota2) / 2;
            return prom;  
        }
    }



}